/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.dp.isd.esed;

import javax.ejb.EJB;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;


/**
 *
 * @author Evgen
 */
@ManagedBean(name="formSender")
@SessionScoped
public class FormSender {
   
   @EJB
   SayYo sayYo;
   
   String message;

   /**
    * Creates a new instance of FormSender
    */
   public FormSender()
   {
   }

   public String getMessage()
   {
      return message;
   }

   public void setMessage(String message)
   {
      this.message = message;
   }
   
   public void say()
   {
      sayYo.say(message);
   }
}
